package com.book.service;

import com.book.base.Service;
import com.book.dto.OrderDetailDto;
import com.book.dto.OrderDto;
import com.book.pojo.OrderBook;
import com.book.pojo.OrderDetail;

import java.util.List;

/**
 * @Author 李锦程
 * @Date 2021/4/26 10:24 下午
 * @Package com.book.service.impl
 * @Version 1.0
 */
public interface OrderService extends Service {

    OrderDto getOrderById(Integer id);

    List<OrderDto> getOrderListByUser(String uCode);

    Integer updateOrder(OrderBook orderBook);

    void saveOrderDetail(List<OrderDetail> details);

    List<OrderDetailDto> getOrderDetailByOrderNo(String orderNo);

    Integer insertOrder(OrderDto orderDto);

    OrderBook getOrderByNo(String orderNo);

    List<OrderDetailDto> getOrderDetailByBookCodeList(List<String> bookCodeList);

    List<OrderDto> getOrderBySearch(String uCode, String text, Integer status);

}
